{block name=report-classes}
<div class="row">
  <div class="col-sm-12">
    <a href="javascript:void(0);" onClick="exportPageToCSV($(this),$('#print-smsusage'),'smsusage.csv');" class="btn btn-info report-green"><span>Export CSV</span></a>
  </div>
</div>
<div class="row form">
  <div class="col-sm-12">
    <a href="javascript:void(0);" onClick="printArea('print-smsusage');" class="btn btn-info report-green"><span>Print</span></a>
  </div>
</div>
<div id="print-smsusage">
	<div class="row term">
	  <div class="col-sm-12">
	    <h2 class="title">SMS Usage: {$start_date} - {$end_date}</h2>
	  </div>
	  <div class="col-sm-12">
	    <table class="table table-striped lblue">
	      <thead>
	        <th>Name</th>
	        <th>Franchise</th>
	        <th>Quantity</th>
	      </thead>
	      <tbody>
	      {if $data}
		      {foreach $data as $d}
		        <tr>
		          <td>{if $d.admin_name || $Wd.admin_surname}{$d.admin_name} {$d.admin_surname}{else}[System]{/if}</td>
		          <td>{$d.franchise}</td>
		          <td>{$d.cnt}</td>
		        </tr>
		      {/foreach}
		     {else}
		     	<tr>
		          <td colspan="3">There are no records.</td>
		        </tr>
		     {/if}
	      </tbody>
	    </table>
	  </div>
	</div>
</div>
{/block} 


